package com.lemote.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 
 * FAIL报告
 * @author wuhui
 * @time 2011-7-16 下午01:31:05
 * @Version:0.0.1
 * @since smt
 */
@Entity
@Table(name="smt_failReoprt")
public class FailReoprt extends IdEntity {

	
	private CircuitBoard board;
	
	/**
	 * 描述 
	 */
	private String description;
	
	/**
	 * 错误代码
	 */
	private String errorCode;
	
	/**
	 * 生成岗位
	 */
	private String jobName;
	
	/**
	 * 缺陷位置
	 */
	private String location;
	
	/**
	 * 测试人
	 */
	private User recorder;
	
	/**
	 * 测试时间
	 */
	private Date testDate;

	@ManyToOne
	@JoinColumn(name="boardId")
	public CircuitBoard getBoard() {
		return board;
	}

	public String getDescription() {
		return description;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public String getJobName() {
		return jobName;
	}

	public String getLocation() {
		return location;
	}

	@ManyToOne
	@JoinColumn(name="recorder")
	public User getRecorder() {
		return recorder;
	}

	public Date getTestDate() {
		return testDate;
	}

	public void setBoard(CircuitBoard board) {
		this.board = board;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public void setRecorder(User recorder) {
		this.recorder = recorder;
	}

	public void setTestDate(Date testDate) {
		this.testDate = testDate;
	}
	
}
